[% USE FillInForm %]

[% c.load_once("jquery.ui/themes/flora/flora.all.css") %]
[% c.load_once("site/new_post.js") %]

<div id='edit_profile_tabs' class='tabs'>
    <ul class="ui-tabs-nav">
        <li><a href='[% forum.forum_url %]'><span>Topics</span></a></li>
        <li><a href='[% forum.forum_url %]/polls'><span>Polls</span></a></li>
        <li class="ui-tabs-selected"><a href='[% forum.forum_url %]/topic/new'><span>[% c.loc("New Topic") %]</span></a></li>
        <li><a href='[% forum.forum_url %]/poll/new'><span>[% c.loc("New Poll") %]</span></a></li>
        <li><a href='[% forum.forum_url %]/action_log'><span>View Action Logs</span></a></li>
    </ul>
    <div class="ui-tabs-container">

[% FILTER fillinform fdat => c.req.params %]

<div class='one'>
<form method="post" enctype="multipart/form-data">
<table align='center' border='1' cellpadding='6'>
  <tr class='title'><td colspan='2'>[% c.loc("New Topic") %]</td></tr>
  <tr class='forum1'><td align='right'>[% c.loc('Title') %]</td><td><input type='text' size='60' maxlength='80' name='title' />
  [% IF c.form.error('title') %]title should be 1-80 chars.[% END %]
  </td></tr>
  <tr class='forum2'><td align="right">[% c.loc("Formatter") %]</td>
    <td><input type='radio' name='formatter' value='ubb' checked='yes' onclick="javascript:switch_formatter()" />UBB &nbsp; <input type='radio' name='formatter' value='textile' onclick="javascript:switch_formatter()" />Textile &nbsp; <input type='radio' name='formatter' value='wiki' onclick="javascript:switch_formatter()" />Wiki &nbsp; <input type='radio' name='formatter' value='pod' onclick="javascript:switch_formatter()" />Pod &nbsp; <input type='radio' name='formatter' value='plain' onclick="javascript:switch_formatter()" />Plain &nbsp; </td>
  </tr>
  <tr class='forum1'>
    <td align='center' valign='middle'>
    
    <div class='ubb'>
    [% INCLUDE format/emot.html %]
    </div>
    <div class='wiki' style='display:none'>
<strong>Wiki Markup Help</strong><br />
=Heading1=<br />
==Heading2==<br />
===Heading3===<br />
<br />
*bold*<br />
_italic_<br />
~~strike~~<br />
^superscript^<br />
,,subscript,,<br />
`inline code`<br />
<br />
Indent lists 2 spaces:<br />
  * bullet item<br />
  # numbered list<br />
<br />
{{{<br />
verbatim code block<br />
}}}<br />
<br />
[http://domain/page label]<br />
http://domain/page<br />
<br />
|| table || cells ||
    </div>

    
    </td><td>

    <div class='ubb'>
    [% WRAPPER 'format/bbcode.html' %]
    </div>

	<textarea name="text" id='text' style='width: 90%' rows="15"></textarea>
	[% IF c.form.error('text') %]text is required.[% END %]
    
    <div class='ubb'>
	[% END %]
    </div>

  </td></tr>
  <tr class='forum2'><td align='right'>[% c.loc('Upload Attachment') %]</td><td>
    [% INCLUDE upload/input.html %]
  </td></tr>
  <tr class='forum1'><td></td><td><input type='submit' /></td></tr>
</table>
</form>
</div>

[% END %]

    </div>
</div>